/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.jjsoft.disco.gco.mdl;

import java.io.Serializable;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
import javax.xml.bind.annotation.XmlRootElement;

/**
 *
 * @author Johnny
 */
@Entity
@Table(catalog = "discodb", schema = "")
@XmlRootElement
@NamedQueries({
    @NamedQuery(name = "Configuracion.findAll", query = "SELECT c FROM Configuracion c"),
    @NamedQuery(name = "Configuracion.findByIdconfiguracion", query = "SELECT c FROM Configuracion c WHERE c.idconfiguracion = :idconfiguracion"),
    @NamedQuery(name = "Configuracion.findByIva", query = "SELECT c FROM Configuracion c WHERE c.iva = :iva"),
    @NamedQuery(name = "Configuracion.findByNombreLocal", query = "SELECT c FROM Configuracion c WHERE c.nombreLocal = :nombreLocal"),
    @NamedQuery(name = "Configuracion.findByLogo", query = "SELECT c FROM Configuracion c WHERE c.logo = :logo"),
    @NamedQuery(name = "Configuracion.findByNombreDuenio", query = "SELECT c FROM Configuracion c WHERE c.nombreDuenio = :nombreDuenio"),
    @NamedQuery(name = "Configuracion.findByDireccion", query = "SELECT c FROM Configuracion c WHERE c.direccion = :direccion"),
    @NamedQuery(name = "Configuracion.findByTelefono", query = "SELECT c FROM Configuracion c WHERE c.telefono = :telefono"),
    @NamedQuery(name = "Configuracion.findByImpresora", query = "SELECT c FROM Configuracion c WHERE c.impresora = :impresora"),
    @NamedQuery(name = "Configuracion.findByRuc", query = "SELECT c FROM Configuracion c WHERE c.ruc = :ruc"),
    @NamedQuery(name = "Configuracion.findByDirIP", query = "SELECT c FROM Configuracion c WHERE c.dirIP = :dirIP"),
    @NamedQuery(name = "Configuracion.findByBarras", query = "SELECT c FROM Configuracion c WHERE c.barras = :barras")})
public class Configuracion implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Basic(optional = false)
    @Column(nullable = false)
    private Integer idconfiguracion;
    // @Max(value=?)  @Min(value=?)//if you know range of your decimal fields consider using these annotations to enforce field validation
    @Column(precision = 22)
    private Double iva;
    @Column(length = 45)
    private String nombreLocal;
    @Column(length = 90)
    private String logo;
    @Column(length = 45)
    private String nombreDuenio;
    @Column(length = 45)
    private String direccion;
    @Column(length = 45)
    private String telefono;
    @Column(length = 45)
    private String impresora;
    @Column(length = 45)
    private String ruc;
    @Column(length = 45)
    private String dirIP;
    @Column
    private Integer barras;
    @Column (precision = 2)
    private Double coverh;
    @Column (precision = 2)
    private Double consumibleh;
    @Column (precision = 2)
    private Double coverm;
    @Column (precision = 2)
    private Double consumiblem;

    public Configuracion() {
    }

    public Configuracion(Integer idconfiguracion) {
        this.idconfiguracion = idconfiguracion;
    }

    public Integer getIdconfiguracion() {
        return idconfiguracion;
    }

    public void setIdconfiguracion(Integer idconfiguracion) {
        this.idconfiguracion = idconfiguracion;
    }

    public Double getIva() {
        return iva;
    }

    public void setIva(Double iva) {
        this.iva = iva;
    }

    public String getNombreLocal() {
        return nombreLocal;
    }

    public void setNombreLocal(String nombreLocal) {
        this.nombreLocal = nombreLocal;
    }

    public String getLogo() {
        return logo;
    }

    public void setLogo(String logo) {
        this.logo = logo;
    }

    public String getNombreDuenio() {
        return nombreDuenio;
    }

    public void setNombreDuenio(String nombreDuenio) {
        this.nombreDuenio = nombreDuenio;
    }

    public String getDireccion() {
        return direccion;
    }

    public void setDireccion(String direccion) {
        this.direccion = direccion;
    }

    public String getTelefono() {
        return telefono;
    }

    public void setTelefono(String telefono) {
        this.telefono = telefono;
    }

    public String getImpresora() {
        return impresora;
    }

    public void setImpresora(String impresora) {
        this.impresora = impresora;
    }

    public String getRuc() {
        return ruc;
    }

    public void setRuc(String ruc) {
        this.ruc = ruc;
    }

    public String getDirIP() {
        return dirIP;
    }

    public void setDirIP(String dirIP) {
        this.dirIP = dirIP;
    }

    public Integer getBarras() {
        return barras;
    }

    public void setBarras(Integer barras) {
        this.barras = barras;
    }

    public Double getCoverh() {
        return coverh;
    }

    public void setCoverh(Double coverh) {
        this.coverh = coverh;
    }

    public Double getConsumibleh() {
        return consumibleh;
    }

    public void setConsumibleh(Double consumibleh) {
        this.consumibleh = consumibleh;
    }

    public Double getCoverm() {
        return coverm;
    }

    public void setCoverm(Double coverm) {
        this.coverm = coverm;
    }

    public Double getConsumiblem() {
        return consumiblem;
    }

    public void setConsumiblem(Double consumiblem) {
        this.consumiblem = consumiblem;
    }

    
    

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (idconfiguracion != null ? idconfiguracion.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof Configuracion)) {
            return false;
        }
        Configuracion other = (Configuracion) object;
        if ((this.idconfiguracion == null && other.idconfiguracion != null) || (this.idconfiguracion != null && !this.idconfiguracion.equals(other.idconfiguracion))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "com.jjsoft.disco.gco.mdl.Configuracion[ idconfiguracion=" + idconfiguracion + " ]";
    }
    
}
